FROM golang:1.21.2-alpine3.17

WORKDIR /niu-video-backend

COPY ../ /niu-video-backend/

ENV TZ=Asia/Shanghai

RUN GOPROXY="https://goproxy.cn" GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main .

CMD ./main